package _17_Inheritance.cars;

public class SportCar extends Car
{
	boolean isCabriolet;
	private double price;
	
	SportCar()
	{
		super(320);

	}
	
	public void switchTurbo()
	{
		System.out.println("Switching turbo!");
	}
	
	@Override
	public void accelerate(double speed)
	{
		//overriding
		super.accelerate(speed);
		System.out.println("SportCar is accelerating!");
		
	
	}
}
